home *** CD-ROM | disk | FTP | other *** search
- 'Unattended System Restore Point
- 'sysrestorepoint.vbs
- '⌐ Doug Knox - rev 02/06/2002
- 'This code may be freely distributed/modified
- 'Downloaded from www.dougknox.com
- 'Extracted from original code by Bill James - www.billsway.com
-
- Set sr = getobject("winmgmts:\\.\root\default:Systemrestore")
-
- msg = "New Restore Point Successfully Created" & vbCR & vbCR
- msg = msg & "It is listed as: FlyakiteOSX v3.5" & vbCR
- msg = msg & "Created on: " & Date & " at " & Time
-
- If (sr.createrestorepoint("FlyakiteOSX v3.5", 0, 100)) = 0 Then
- t = MsgBox(msg, vbSystemModal, "Create Restore Point")
- Else
- t = MsgBox("Restore Point Creation Failed!", vbExclamation + vbSystemModal, "Create Restore Point")
- End If
-
- Set sr = Nothing